home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / utilities / 2.0 / copymemquicker-2.1.lzh / CopyMemQuicker.DOC < prev    next >
Text File  |  1992-02-09  |  3KB  |  61 lines

  1.                    CopyMemQuicker 2.1 (8 Feb 1992)
  2.                   Copyright © 1991, 1992 Arthur Hagen
  3.                             Parts of code:
  4.         Copyright © 1985-1991 Commodore Business Machines Ltd.
  5.         ======================================================
  6.                      Posted to the Public Domain!
  7.                 (by permission of Commodore Norge A/S)
  8.  
  9.  
  10.   Just another small thingy to put in your Amigas S:Startup-Sequence.
  11. This one will patch the exec.library functions CopyMem and CopyMemQuick
  12. to become faster (by a few pct.) than the regular ones.  These func-
  13. tions are two of the cornerstone functions of the operating system, so
  14. most programs should benefit from this patch.  Source included.
  15.  
  16.   Known bugs:  None.  Should work with all versions of the O/S from
  17. KickStart 1.2 upto and including 2.04, and with all processors from the
  18. 68000 upto and including the 68040.
  19.   Even so, SOME virus killers might just report this patch as a virus -
  20. it isn't.  And, remember, if you use this program, you do it totally at
  21. your own risk - I will under no circumstances be held responsible for
  22. what this program does to any system (It should be 100% compatible with
  23. ye olde routines, though - the only difference is that this code won't
  24. bug out if you try to copy 0 bytes, the original code does...).
  25.   Speed increases may vary according to the processor, but some cycles
  26. should be should be shaved off on all systems.  My 68010-based system
  27. experiences some 3-50% boost with CopyMemQuicker, with the peak for a
  28. small number of bytes.
  29.   The patch is optimised for all 68k processors (except the 68008), and
  30. relies upon the loop-mode for the faster processors, but the routines
  31. might be optimised further by longword-aligning some parts of the code
  32. for the faster processors with 32-bits ram.  Feel free to do so...
  33.   And - CopyMemQuicker will of course gobble up 288 bytes of your
  34. Amigas precious memory, but it will use 8 stack bytes less than the
  35. original code...  :-)
  36.  
  37.   Usage:
  38.   1>  CopyMemQuicker
  39.  
  40.   This will act like a switch, and turns the program on/off (but I
  41. don't know why it ever should be turned off).  The memory used will NOT
  42. be freed when turning the function off, as some other part of your
  43. multitasking system might still be using the routine.  I think you
  44. could live with the loss of 288 bytes, though...
  45.  
  46.   To test the routine on your machine, run "testit" from CLI.  It might
  47. take some time to complete (depending on the processor), but should
  48. give fairly accurate test results.  (The reason for the test taking
  49. longer time than the figures printed on-screen indicate, is that the
  50. time to execute the timing loop itself is timed and deducted before
  51. printing (to give as accurate a result as possible).)
  52.  
  53.   There WAS a severe bug in versions 1.4 and 1.5 of this patch, which
  54. caused a guru on all machines except those fitted with a 68010.  This
  55. was due to a bug in the Aztec assembler, which could not handle ad-
  56. dresses like "*-2" properly.  The bug has been worked around, and the
  57. current version has been properly tested before release.  Sorry!
  58.  
  59. Enjoy,
  60. *Art
  61.